home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / maint.mak < prev    next >
Text File  |  1993-05-29  |  7KB  |  212 lines

  1. #    Copyright (C) 1991, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # Auxiliary MS-DOS makefile for maintenance operations.
  20.  
  21. # This file pertains to Aladdin Enterprises maintenance operations,
  22. # and is unlikely to be useful to users.
  23.  
  24. # Targets:
  25. #    xmit -- make the .BE files for Kermit transmission
  26. #    xfonts -- make the .BE files for the fonts
  27. #    xfer -- make a diskette for transferring files to the Sun
  28. #    release -- make the .BE files for a release
  29. # Remember to erase *.zip / *.z / *.be, if needed, before running these.
  30.  
  31. # ---------------- Convert Windows icons ----------------
  32.  
  33. gsgraph.icx: gsgraph.uue
  34.     eadcode / gsgraph.uue gsgraph.ico
  35.     od -o gsgraph.icx -H gsgraph.ico
  36.  
  37. gstext.icx: gstext.uue
  38.     eadcode / gstext.uue gstext.ico
  39.     od -o gstext.icx -H gstext.ico
  40.  
  41. # ---------------- Make files for Kermit transmission ----------------
  42.  
  43. TARS=tar1.be tar2.be
  44.  
  45. FILES1=*.1 gs*.bat bdftops.bat font2c.bat ps2*.bat *.doc
  46. FILES2=*.ps fontmap.* copying news readme bdftops font2c ps2*.
  47. RM_FILES=c_*.* q* q*.* t.* comp1.*
  48. SRC10=\rm.bat \cp.bat \mv.bat
  49. SRC11=g*.asm i*.asm ansi2knr.c echogs.c ega.c turboc.cfg gs*.def
  50. SRC12=*.icx gs*.rc *.h *.mak *.sh *.tr tar_*. ugly*.* gs*. ccgs
  51. RM_SRC11=arch.h c_*.* gconfig*.h n*.h n*.mak l*.tr o*.tr
  52. RM_SRC12=ugly*.bdf q* q*.* t.* comp1.* _temp*.*
  53. SRC2=g*.c i*.c s*.c z*.c
  54.  
  55. xmit: $(TARS)
  56.  
  57. xexe: tar0.be
  58.  
  59. xfonts: tar8.be
  60.  
  61. xfer: tar1.z tar2.z
  62.     @echo ---------------- Insert diskette:
  63.     @command /c pause
  64.     xcopy tar_x.* a:
  65.     xcopy tar*.z a:
  66.  
  67. release: xmit xexe
  68.  
  69. # The dependency lists for the .be files should be much longer!
  70.  
  71. .z.be:
  72.     bed $*.z $*.be
  73.     erase $*.z
  74. .taz.be:
  75.     bed $*.taz $*.be
  76.     erase $*.taz
  77.  
  78. gs-tests.taz:
  79.     cd \gs\test
  80.     tar -b1 -cf \gs\_temp_.tar *.ps
  81.     cd \gs
  82.     gzip _temp_.tar
  83.     if exist gs-tests.taz erase gs-tests.taz
  84.     rename _temp_.taz gs-tests.taz
  85.  
  86. # We don't make tar0.z a dependent of gs.exe, because that forces
  87. # rebuilding of gs.exe if we've switched configurations recently.
  88. tar0.z:
  89.     @if not exist gs.exe echo gs.exe does not exist, do you want to proceed?
  90.     @if not exist gs.exe pause
  91.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  92.     @if not exist gs386.exe pause
  93.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  94.     @if not exist gswin.exe pause
  95.     tar -b1 -cf _temp_.tar -uexe -uico -ures gs*.exe gs*.ico gs*.res
  96.     gzip _temp_.tar
  97.     if exist tar0.z erase tar0.z
  98.     rename _temp_.taz tar0.z
  99.  
  100. STAGING=\gs\master\staging
  101.  
  102. tar1.z:
  103.     erase $(STAGING)\*.* <\y
  104.     for %f in ($(FILES1)) do xcopy %f $(STAGING)
  105.     for %f in ($(FILES2)) do xcopy %f $(STAGING)
  106.     for %f in ($(SRC10)) do xcopy %f $(STAGING)
  107.     for %f in ($(SRC11)) do xcopy %f $(STAGING)
  108.     for %f in ($(SRC12)) do xcopy %f $(STAGING)
  109.     cd $(STAGING)
  110.     rm $(RM_FILES)
  111.     xcopy \gs\quit.ps
  112.     rm $(RM_SRC11)
  113.     rm $(RM_SRC12)
  114.     copy fontmap.gs fontmap
  115.     tar -b1 -cf \gs\_temp_.tar -ubat -udef *.*
  116.     erase $(STAGING)\*.* <\y
  117.     cd \gs
  118.     gzip _temp_.tar
  119.     if exist tar1.z erase tar1.z
  120.     rename _temp_.taz tar1.z
  121.  
  122. tar2.z: gs.c
  123.     tar -b1 -cf _temp_.tar g*.c i*.c s*.c z*.c
  124.     gzip _temp_.tar
  125.     if exist tar2.z erase tar2.z
  126.     rename _temp_.taz tar2.z
  127.  
  128. tar8.z: fonts\bchr.gsf fonts\hrsy_r.gsf
  129.     tar -b1 -cf _temp_.tar fonts/*.gsf
  130.     gzip _temp_.tar
  131.     if exist tar8.z erase tar8.z
  132.     rename _temp_.taz tar8.z
  133.  
  134. # ---------------- Make MS-DOS diskette sets ----------------
  135.  
  136. allzips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip \
  137.   gsfonts1.zip gsfonts2.zip gsfonts3.zip gsfonts4.zip
  138.     @echo ---------------- Done. ----------------
  139.  
  140. srczips: gsfiles.zip gssrc1.zip gssrc2.zip
  141.     @echo ---------------- Done. ----------------
  142.  
  143. zips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip
  144.     @echo ---------------- Done. ----------------
  145.  
  146. # Here are the ZIP files that go onto the diskettes.
  147.  
  148. # We don't make gsexe.zip a dependent of gs.exe, because that forces
  149. # rebuilding of gs.exe if we've switched configurations recently.
  150. gsexe.zip:
  151.     @if not exist gs.exe echo gs.exe does not exist, do you want to proceed?
  152.     @if not exist gs.exe pause
  153.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  154.     @if not exist gs386.exe pause
  155.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  156.     @if not exist gswin.exe pause
  157.     if exist _temp_.zip erase _temp_.zip
  158.     pkzip _temp_.zip gs*.exe
  159.     if exist gs386.exe pkzip -a _temp_.zip \watc\bin\dos4gw.exe
  160.     if exist gswin.exe pkzip -a _temp_.zip \windows\system\shell.dll \windows\system\commdlg.dll gs*.ico gs*.res
  161.     if exist gsexe.zip erase gsexe.zip
  162.     rename _temp_.zip gsexe.zip
  163.  
  164. gsfiles.zip: bdftops.bat
  165.     if exist _temp_.zip erase _temp_.zip
  166.     pkzip _temp_.zip $(FILES1)
  167.     pkzip -a _temp_.zip $(FILES2)
  168.     pkzip -d _temp_.zip $(RM_FILES)
  169.     pkzip -a _temp_.zip quit.ps
  170.     if exist gsfiles.zip erase gsfiles.zip
  171.     rename _temp_.zip gsfiles.zip
  172.  
  173. gssrc1.zip: ansi2knr.c
  174.     if exist _temp_.zip erase _temp_.zip
  175.     pkzip _temp_.zip $(SRC10)
  176.     pkzip -a _temp_.zip $(SRC11)
  177.     pkzip -a _temp_.zip $(SRC12)
  178.     pkzip -d _temp_.zip $(RM_SRC11)
  179.     pkzip -d _temp_.zip $(RM_SRC12)
  180.     if exist gssrc1.zip erase gssrc1.zip
  181.     rename _temp_.zip gssrc1.zip
  182.  
  183. gssrc2.zip: gs.c
  184.     if exist _temp_.zip erase _temp_.zip
  185.     pkzip _temp_.zip $(SRC2)
  186.     if exist gssrc2.zip erase gssrc2.zip
  187.     rename _temp_.zip gssrc2.zip
  188.  
  189. gsfonts1.zip: fonts\phvr.gsf fonts\pncr.gsf fonts\pplr.gsf
  190.     if exist _temp_.zip erase _temp_.zip
  191.     pkzip _temp_.zip fonts\ph*.* fonts\pn*.* fonts\pp*.*
  192.     if exist gsfonts1.zip erase gsfonts1.zip
  193.     rename _temp_.zip gsfonts1.zip
  194.  
  195. gsfonts2.zip: fonts\bchr.gsf fonts\cyr.gsf fonts\pagk.gsf fonts\pbkd.gsf
  196.     if exist _temp_.zip erase _temp_.zip
  197.     pkzip _temp_.zip fonts\b*.* fonts\cy*.* fonts\pa*.* fonts\pb*.*
  198.     if exist gsfonts2.zip erase gsfonts2.zip
  199.     rename _temp_.zip gsfonts2.zip
  200.  
  201. gsfonts3.zip: fonts\psyr.gsf fonts\ptmr.gsf fonts\pzdr.gsf fonts\zcr.gsf
  202.     if exist _temp_.zip erase _temp_.zip
  203.     pkzip _temp_.zip fonts\ps*.* fonts\pt*.* fonts\pz*.* fonts\z*.*
  204.     if exist gsfonts3.zip erase gsfonts3.zip
  205.     rename _temp_.zip gsfonts3.zip
  206.  
  207. gsfonts4.zip: fonts\ncrr.gsf fonts\putr.gsf fonts\hrsy_r.gsf fonts\u004006t.gsf
  208.     if exist _temp_.zip erase _temp_.zip
  209.     pkzip _temp_.zip fonts\n*.gsf fonts\pu*.* fonts\h*.gsf fonts\u*.gsf
  210.     if exist gsfonts4.zip erase gsfonts4.zip
  211.     rename _temp_.zip gsfonts4.zip
  212.